Inline files are not for building API's like you are trying to do. If you use inline files, you are essentially hardcoding everything, they are only useful for organizing your code. If you are actually wanting to make things dynamic, you need to build an API that allows you to "register" your race which sets up multiforwards for your race specific actions.