be a matter of (doing something)
To be contingent on doing a particular thing. It's a matter of sticking with the program in order to succeed.
be (all) a matter of something/doing something
depend on something/doing something: Success in business is all a matter of experience.Doing anything well is a matter of practice.